home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
children
/
presdent.exe
/
P_INSTAL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-11-23
|
6KB
|
149 lines
echo off
cls
echo.
echo P_INSTAL.BAT for The Presidents A & B
echo.
echo Amended by P.S.A. to ensure it works correctly
cls
if x%1==x goto di-rections
if x%2==x goto di-rections
if not exist %1PRES_B.EXE goto error
if not exist %1PRES_A.EXE goto error
if not exist %1P_README.1ST goto error
if %2==a: goto small-disk
if %2==A: goto small-disk
if %2==b: goto small-disk
if %2==B: goto small-disk
goto big-disk
rem Display Install help if drive data are wrong
:di-rections
echo ╒════════════════════════╗ ╔════════════════════════════════════╕
echo │ Installation Procedure ║ ║ Syntax: P_INSTAL drive1 drive2 │
echo ├────────────────────────╨───────╨────────────────────────────────────┤
echo │ The Install procedure must be from one drive to another. │
echo │ The distribution disk must be placed in drive1. The Install │
echo │ program will expand the files to drive2. │
echo ╞═════════════════════════════════════════════════════════════════════╡
echo │ If you use a Dual Floppy 360k system you will need to prepare two │
echo │ formatted diskettes. Label one of the disks PRESIDENT A and the 2nd│
echo │ PRESIDENT B. When ready place the distribution disk in drive A: │
echo │ type .... P_INSTAL A: B: or from B: P_INSTAL B: A: │
ECHO ╞═════════════════════════════════════════════════════════════════════╡
echo │ For a Hard Disk or a 720k+ system you will require at least 700K. │
echo │ A \PRES subdirectory will be created on a HD. When ready place the │
echo │ distrution disk in drive A: (or B:) and type "from" - "to": │
echo │ P_INSTAL A: C: (program material from A: to hard disk C:) or │
echo │ P_INSTAL B: C: (program material from B: to hard disk C:) or │
echo │ P_STALL B: A: (program material from B: to 720K+ disk A:). │
echo ╞═════════════════════════════════════════════════════════════════════╡
echo │ NOTE: The INSTALL batch file will supply supplemental instructions.│
echo ╘═════════════════════════════════════════════════════════════════════╛
pause
cls
goto exit_bat
rem *** routine for hard disk installation procedure ***
:big-disk
cls
echo ╒══════════════════════════════════════════════════════════╕
echo │ You have chosen to install the President files │
echo │ from drive "%1" to drive "%2" fixed disk. │
echo ├──────────────────────────────────────────────────────────┤
echo │ Remember, the Destination drive %2 must have 700K free. │
echo ├──────────────────────────────────────────────────────────┤
echo │ If you wish to change your mind press "CTRL+BREAK" now. │
echo ├──────────────────────────────────────────────────────────┤
echo │ Otherwise .... │
echo ╘══════════════════════════════════════════════════════════╛
echo:
pause
%2
cls
echo ┌──────────────────────────────────────┐
echo │ Creating \PRES directory on "%2". │
echo └──────────────────────────────────────┘
cd \
md PRES
cd \PRES
echo ┌────────────────────────────────────────┐
echo │ Extracting files ................. │
echo │ This may take a few moments.... │
echo └────────────────────────────────────────┘
COPY %1P_README.1st %2
%1PRES_A
%1PRES_B
dir /w %2
pause
%1
goto done
rem
rem *** Installation procedure for 360K - 720k+ diskette ***
rem
:small-disk
cls
echo ╔══════════╦═════════════════════════════════════════════════════════╗
echo ║ FLOPPY ║ You have chosen to install the files from ║
echo ║ INSTALL ║ Drive %1 to a 360K or 720k+ disk on Drive %2. ║
echo ╠══════════╩═════════════════════════════════════════════════════════╣
echo ║ Remember - you should have diskettes formatted and prepared ║
echo ║ labeled PRES_A (& PRES_B). Press CTRL+BREAK if not ready, else...║
echo ╠════════════════════════════════════════════════════════════════════╣
echo ║ Put distribution disk in drive %1 & Disk PRES_A in Drive %2 and ..║
echo ╚════════════════════════════════════════════════════════════════════╝
echo:
pause
cls
echo ┌────────────────────────────────────────┐
echo │ Extracting QUIZPRES & TEST files .... │
echo │ This may take a few moments ......... │
echo └────────────────────────────────────────┘
%2
COPY %1P_README.1ST %2
%1pres_A
dir /w %2
pause
cls
echo ╔═══════════════════════════════════════════════════════════════╗
echo ║ If a 360k disk: Remove PRES_A disk from drive %2 ║
echo ║ Replace it with the PRES_B disk, or ... ║
echo ║===============================================================║
echo ║ If a 720k+ disk: No need to remove the disk. Just ......... ║
echo ╚═══════════════════════════════════════════════════════════════╝
echo:
pause
echo ┌────────────────────────────────────────┐
echo │ Extracting BIOGRAPHY files .......... │
echo │ This may take a few moments ......... │
echo └────────────────────────────────────────┘
%1PRES_B
dir /w %2
pause
:done
cls
echo ┌─────────────────────────────────────────────────────────┐
echo │ BRAVO ... The installation procedure has been complete! │
echo └─────────────────────────────────────────────────────────┘
echo:
echo:
echo ╔═════════════════════════════╤═════════════════════════════════╗
echo ║ The document may be printed.│ : PRINT PRES.DOC ║
echo ║ or listed to the screen.....│by typing : TYPE PRES.DOC ║
echo ░ --------------------------------------------------------------░
echo ║ The programs may be run.....│by typing : QUIZPRES ║
ECHO ║ OR .........................│ : READPRES ║
echo ╚═════════════════════════════╧═════════════════════════════════╝
GOTO EXIT_BAT
:ERROR
CLS
echo
echo
echo d
echo:
echo ************************************************************
ECHO * We have not found the correct files on drive %1. Please *
echo * place the distribution disk in drive %1 and start over. *
echo ************************************************************
echo
pause
:exit_bat
go